package com.blb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface BaseMapper<T, E> {

	long countByExample(T example);

    int deleteByExample(T example);

    int deleteByPrimaryKey(String id);

    int insert(E record);

    int insertSelective(E record);

    List<E> selectByExample(T example);

    E selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") E record, @Param("example") T example);

    int updateByExample(@Param("record") E record, @Param("example") T example);

    int updateByPrimaryKeySelective(E record);

    int updateByPrimaryKey(E record);
}
